# as -gstabs -o cpuid.o cpuid.s
# ld -o cpuid cpuid.o
.section .data
output:
	.ascii "info: xxxxxxxxxxxx\n"
	
.section .text
	.global _start

_start:
	movl	$0, %eax
	cpuid
	
	movl	$output, %esi
	movl	%ebx, 6(%esi)
	movl	%edx, 10(%esi)
	movl	%ecx, 14(%esi)
	
	# print info
	movl	$4, %eax
	movl	$1, %ebx
	movl	$output, %ecx
	movl	$19, %edx
	int		$0x80
	
	movl	$1, %eax
	movl	$0, %ebx
	int		$0x80
	